package com.bank.seckill.service;

import com.bank.entity.Member;
import com.bank.entity.Seckill;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author: Lixy
 * @email: 1908598362@qq.com
 * @date: 2022/1/28 星期五 17:45
 */
public interface GoodsService extends IService<Seckill> {


    String saveGoods(Seckill goods, MultipartFile image) throws IOException;

    Seckill SelcetGoodsById(String secid);

    Seckill SelcetGoodsByName(String name);

    List<Seckill> SelectAll();

    Seckill SelectOne(QueryWrapper queryWrapper);

    boolean update(UpdateWrapper<Seckill> updateWrapper);
}
